package com.ys.entity.storage;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_LogisticsServiceProviderItem", catalog="Id")
public class TccLogisticsServiceProviderItem extends BaseEntity<TccLogisticsServiceProviderItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pid", nameJava="pid", typeDataBase="bigint")
	private Long pid;
	@YsField(nameDataBase="ContactPerson", nameJava="contactPerson", typeDataBase="varchar")
	private String contactPerson;
	@YsField(nameDataBase="ContactNumber", nameJava="contactNumber", typeDataBase="varchar")
	private String contactNumber;
	@YsField(nameDataBase="BankAccountName", nameJava="bankAccountName", typeDataBase="varchar")
	private String bankAccountName;
	@YsField(nameDataBase="OpeningBank", nameJava="openingBank", typeDataBase="varchar")
	private String openingBank;
	@YsField(nameDataBase="AccountNumber", nameJava="accountNumber", typeDataBase="varchar")
	private String accountNumber;
	@YsField(nameDataBase="Contract", nameJava="contract", typeDataBase="varchar")
	private String contract;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccLogisticsServiceProviderItem setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getPid() {
		return pid;
	}
	public TccLogisticsServiceProviderItem setPid(Long pid) {
		this.pid = pid;
		return this;
	}
	public String getContactPerson() {
		return contactPerson;
	}
	public TccLogisticsServiceProviderItem setContactPerson(String contactPerson) {
		this.contactPerson = contactPerson;
		return this;
	}
	public String getContactNumber() {
		return contactNumber;
	}
	public TccLogisticsServiceProviderItem setContactNumber(String contactNumber) {
		this.contactNumber = contactNumber;
		return this;
	}
	public String getBankAccountName() {
		return bankAccountName;
	}
	public TccLogisticsServiceProviderItem setBankAccountName(String bankAccountName) {
		this.bankAccountName = bankAccountName;
		return this;
	}
	public String getOpeningBank() {
		return openingBank;
	}
	public TccLogisticsServiceProviderItem setOpeningBank(String openingBank) {
		this.openingBank = openingBank;
		return this;
	}
	public String getAccountNumber() {
		return accountNumber;
	}
	public TccLogisticsServiceProviderItem setAccountNumber(String accountNumber) {
		this.accountNumber = accountNumber;
		return this;
	}
	public String getContract() {
		return contract;
	}
	public TccLogisticsServiceProviderItem setContract(String contract) {
		this.contract = contract;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccLogisticsServiceProviderItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccLogisticsServiceProviderItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccLogisticsServiceProviderItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccLogisticsServiceProviderItem tccLogisticsServiceProviderItem(
		Long pid,
		String contactPerson,
		String contactNumber,
		String bankAccountName,
		String openingBank,
		String accountNumber,
		String contract,
		Integer status
			) {
		TccLogisticsServiceProviderItem entity = new TccLogisticsServiceProviderItem();
		entity.setPid(pid);
		entity.setContactPerson(contactPerson);
		entity.setContactNumber(contactNumber);
		entity.setBankAccountName(bankAccountName);
		entity.setOpeningBank(openingBank);
		entity.setAccountNumber(accountNumber);
		entity.setContract(contract);
		entity.setStatus(status);
		return entity;
	}
}